From 252b78d3bcb2aea7d070c282a09f2ca679b7610a Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 16 Nov 2000 05:05:12 +0000 Subject: [PATCH] (pos_visible_p): Handle case that we reach ZV without knowing the line's height; use the default font's height in that case. --- src/xdisp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index c2ed64b1477..e75ae762687 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -995,13 +995,15 @@ pos_visible_p (w, charpos, fully, exact_mode_line_heights_p) { if (last_height) line_height = last_height; - else + else if (charpos < ZV) { move_it_by_lines (&it, 1, 1); line_height = (it.max_ascent || it.max_descent ? it.max_ascent + it.max_descent : last_height); } + else + line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame))); } line_bottom_y = line_top_y + line_height; -- 2.30.2